import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from '@/router'
import 'element-plus/dist/index.css'
import errorHandlerPlugin from '@/plugins/error-handler-plugin.ts'
import elementPlusIconPlugin from '@/plugins/element-plus-icon-plugin.ts'
import mdEditorV3Plugin from '@/plugins/md-editor-v3-plugin.ts'
import '@/assets/css/main.css'

createApp(App)
  .use(router) //注册路由
  .use(createPinia()) //注册pinia
  .use(errorHandlerPlugin) //注册全局异常处理
  .use(elementPlusIconPlugin) //注册element plus图标
  .use(mdEditorV3Plugin) //markdown 编辑器
  .mount('#app')
